package com.xian.loop;

public class WhileDemo1 {
    public static void main(String[] args) {
        //目标：while

        //知道循环几次用for循环，，，不知道循环几次用while
        int i = 0;
        while (i<3){
            System.out.println(i);
            i++;
        }
    }
}
